package library.entity;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

enum Sex { male, female }

abstract public class User {
	@DatabaseField(generatedId = true)
	protected int id;
	@DatabaseField(canBeNull = false, indexName = "user_name_index", unique = true)
	protected String userName;
    @DatabaseField()
    protected String fullName;
	@DatabaseField(canBeNull = false)
	protected String password;
	@DatabaseField(dataType = DataType.ENUM_STRING)
	protected Sex sex;
	@DatabaseField
	protected String tel;
	@DatabaseField
	protected String address;

	public User(){
		
	}

	public int getId() {
		return id;
	}
	
	public String getUserName() {
		return userName;
	}

	public String getTel() {
		return tel;
	}

	public String getAddress() {
		return address;
	}

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
